Action hook 'create_{$taxonomy}'
in WP Core File wp-includes/taxonomy.php at line 2679
Description
Fires after a new term is created for a specific taxonomy. The dynamic portion of the hook name, `$taxonomy`, refers to the slug of the taxonomy the term was created for. Possible hook names include: - `create_category` - `create_post_tag`
Occurrences
Filename |
Line Number |
wp-includes/taxonomy.php |
2679 |
Parameters
Type |
Name |
Description |
int |
$term_id |
Term ID. |
int |
$tt_id |
Term taxonomy ID. |
array |
$args |
Arguments passed to wp_insert_term(). |
PHP Doc
/**
* Fires after a new term is created for a specific taxonomy.
*
* The dynamic portion of the hook name, `$taxonomy`, refers
* to the slug of the taxonomy the term was created for.
*
* Possible hook names include:
*
* - `create_category`
* - `create_post_tag`
*
* @since 2.3.0
* @since 6.1.0 The `$args` parameter was added.
*
* @param int $term_id Term ID.
* @param int $tt_id Term taxonomy ID.
* @param array $args Arguments passed to wp_insert_term().
*/